package bussinessService.impl;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import module.HousePhoto;
import domain.vo.HousePhotoVO;
import domain.vo.queryObject;
import bussinessService.housePhotoBussinessService;

/**
 * 
* @ClassName: HousePhotoBussinessServiceImpl 
* @Description: 房屋图业务实现类
* @author chenchao
* @date 2014年1月23日 下午3:36:36 
*
 */
public class HousePhotoBussinessServiceImpl implements housePhotoBussinessService  {

	/* (非 Javadoc) 
	* <p>Title: getById</p> 
	* <p>Description: </p> 
	* @param id
	* @return
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#getById(java.lang.String) 
	*/
	@Override
	public HousePhoto getById(String id) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	/* (非 Javadoc) 
	* <p>Title: getAll</p> 
	* <p>Description: </p> 
	* @return
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#getAll() 
	*/
	@Override
	public List<HousePhotoVO> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	/* (非 Javadoc) 
	* <p>Title: merageObject</p> 
	* <p>Description: </p> 
	* @param t
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#merageObject(java.lang.Object) 
	*/
	@Override
	public void merageObject(HousePhoto t) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	/* (非 Javadoc) 
	* <p>Title: deleteT</p> 
	* <p>Description: </p> 
	* @param id
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#deleteT(int) 
	*/
	@Override
	public void deleteT(int id) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	/* (非 Javadoc) 
	* <p>Title: getObjectByQueryObject</p> 
	* <p>Description: </p> 
	* @param queryObject
	* @return
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#getObjectByQueryObject(domain.vo.queryObject) 
	*/
	@Override
	public List<HousePhotoVO> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		List<HousePhotoVO>  vos  = new ArrayList<HousePhotoVO>();
		List<HousePhoto> result = new ArrayList<HousePhoto>();
		result = housePhotoService.getObjectByQueryObject(queryObject);
		for(HousePhoto hp : result) {
			HousePhotoVO vo = new HousePhotoVO();
			vo.setUrl(hp.getUrl());
			vos.add(vo);
		}
		return vos;
	}

	/* (非 Javadoc) 
	* <p>Title: countByQueryObject</p> 
	* <p>Description: </p> 
	* @param queryObject
	* @return
	* @throws SQLException 
	* @see bussinessService.basicbussinessService#countByQueryObject(domain.vo.queryObject) 
	*/
	@Override
	public int countByQueryObject(queryObject queryObject) throws SQLException {
		// TODO Auto-generated method stub
		return 0;
	}

}
